// 单项面包屑组件

<template>
  <div class="tizi-bread-item">
    <RouterLink v-if="to" :to="to"><slot /></RouterLink>
    <span v-else><slot /></span>
    <!-- // 清除重新用render去设定，否则多出一个i标签 -->
    <!-- <i class="iconfont icon-angle-right"></i> -->
  </div>
</template>

<script>
export default {
    name:'TiziBreadItem',
    props: {
        to : {
            type:[String,Object]
        }
    }
}
</script>

<style lang="less" scoped>

</style>